package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据源管理对象 database_mng
 *
 * @author weicc
 * @date 2023-09-23
 */
public class DatabaseMng extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */

    private String id;

    /** 数据库名称 */
    @Excel(name = "数据库名称")
    private String dbName;

    /** 所属局办 */
    @Excel(name = "所属局办")
    private String bureauId;

    /** 所属局办名称 */
    @Excel(name = "所属局办名称")
    private String bureauName;

    /** 分类 */
    @Excel(name = "分类")
    private String classify;

    /** 数据库类型（0oracle 1mysql 2hadoop hive） */
    @Excel(name = "数据库类型", readConverterExp = "0=oracle,1=mysql,2=hadoop,h=ive")
    private String dbType;

    /** url */
    @Excel(name = "url")
    private String url;

    /** 驱动 */
    @Excel(name = "驱动")
    private String driver;

    /** IP */
    @Excel(name = "IP")
    private String ip;

    /** SCHEMA */
    @Excel(name = "SCHEMA")
    private String schemal;

    /** 端口 */
    @Excel(name = "端口")
    private String port;

    /** 用户名 */
    @Excel(name = "用户名")
    private String user;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** znodeParent */
    @Excel(name = "znodeParent")
    private String znodeParent;

    /** sshIP */
    @Excel(name = "sshIP")
    private String sshIp;

    /** ssh用户名 */
    @Excel(name = "ssh用户名")
    private String sshUser;

    /** ssh密码 */
    @Excel(name = "ssh密码")
    private String sshPassword;

    /** ssh端口 */
    @Excel(name = "ssh端口")
    private Long sshPort;

    /** $column.columnComment */
    private String delFlag;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer orgDb;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer valid;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setDbName(String dbName)
    {
        this.dbName = dbName;
    }

    public String getDbName()
    {
        return dbName;
    }
    public void setBureauId(String bureauId)
    {
        this.bureauId = bureauId;
    }

    public String getBureauId()
    {
        return bureauId;
    }
    public void setBureauName(String bureauName)
    {
        this.bureauName = bureauName;
    }

    public String getBureauName()
    {
        return bureauName;
    }
    public void setClassify(String classify)
    {
        this.classify = classify;
    }

    public String getClassify()
    {
        return classify;
    }
    public void setDbType(String dbType)
    {
        this.dbType = dbType;
    }

    public String getDbType()
    {
        return dbType;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setDriver(String driver)
    {
        this.driver = driver;
    }

    public String getDriver()
    {
        return driver;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }
    public void setSchemal(String schemal)
    {
        this.schemal = schemal;
    }

    public String getSchemal()
    {
        return schemal;
    }
    public void setPort(String port)
    {
        this.port = port;
    }

    public String getPort()
    {
        return port;
    }
    public void setUser(String user)
    {
        this.user = user;
    }

    public String getUser()
    {
        return user;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setZnodeParent(String znodeParent)
    {
        this.znodeParent = znodeParent;
    }

    public String getZnodeParent()
    {
        return znodeParent;
    }
    public void setSshIp(String sshIp)
    {
        this.sshIp = sshIp;
    }

    public String getSshIp()
    {
        return sshIp;
    }
    public void setSshUser(String sshUser)
    {
        this.sshUser = sshUser;
    }

    public String getSshUser()
    {
        return sshUser;
    }
    public void setSshPassword(String sshPassword)
    {
        this.sshPassword = sshPassword;
    }

    public String getSshPassword()
    {
        return sshPassword;
    }
    public void setSshPort(Long sshPort)
    {
        this.sshPort = sshPort;
    }

    public Long getSshPort()
    {
        return sshPort;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setOrgDb(Integer orgDb)
    {
        this.orgDb = orgDb;
    }

    public Integer getOrgDb()
    {
        return orgDb;
    }
    public void setValid(Integer valid)
    {
        this.valid = valid;
    }

    public Integer getValid()
    {
        return valid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dbName", getDbName())
            .append("bureauId", getBureauId())
            .append("bureauName", getBureauName())
            .append("classify", getClassify())
            .append("dbType", getDbType())
            .append("url", getUrl())
            .append("driver", getDriver())
            .append("ip", getIp())
            .append("schemal", getSchemal())
            .append("port", getPort())
            .append("user", getUser())
            .append("password", getPassword())
            .append("znodeParent", getZnodeParent())
            .append("sshIp", getSshIp())
            .append("sshUser", getSshUser())
            .append("sshPassword", getSshPassword())
            .append("sshPort", getSshPort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("orgDb", getOrgDb())
            .append("valid", getValid())
            .toString();
    }
}
